<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>门诊登记</title>
<%@ include file="/common/meta.jsp"%>
<link href="${ctx}/js/validate/jquery.validate.css" type="text/css" rel="stylesheet"/>
<script src="${ctx}/js/validate/jquery.validate.js" type="text/javascript"></script>
<script src="${ctx}/js/validate/messages_cn.js" type="text/javascript"></script>
<script src="${ctx}/js/clinic/clinicRegister.js" type="text/javascript"></script>
<script src="${ctx}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script>
		$(document).ready(function() {
			//聚焦第一个输入框
			$("#typeId").focus();
			
			$("#register").validate({
				rules: {
					typeId: "required",
					patientID: "required",
					recordDate: "required",
					symptom: "required"
				}
			});
		});
	</script>
</head>
<body>
<table class="noborder">
	<tr>
		<td align="left">
		<div style="font-family: Arial; font-size: 15px; font-weight: bold; font-style: normal">当前位置：校园诊所--门诊登记</div>
		</td>
	</tr>
</table>

<form id="register" action="clinic-register!save.action" method="post">
<div id="message"><s:actionmessage theme="mytheme" cssClass="success" /></div>
<table width="60%" class="noborder">
	<tr>
		<td>诊疗类别：</td>
		<td><s:select name="typeId" id="typeId"
			list="clinicTypeList" listKey="id" listValue="term"
			value="29" theme="simple" style="width:150px" /></td>
	</tr>
	<tr>
		<td>学号/工号：</td>
		<td><input type="text" id="patientID" name="patientID" size="20"  /></td>
	</tr>
	<tr>
		<td>就诊时间：</td>
		<td><input type="text" id="recordDate" name="recordDate" size="20" readonly="readonly"
			value="<s:date name='recordDate' format='yyyy-MM-dd'/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-%d'})"/></td>
	</tr>
	<tr>
		<td>症状描述：</td>
		<td><s:textarea name="symptom" id="simple" theme="simple" cols="50" rows="5" value=""/></td>
	</tr>
	<tr>
		<td><s:submit type="button" theme="simple">登记完成</s:submit></td>
		<td></td>
	</tr>
</table>
</form>
</body>
</html>